<html>
<head><title>Openp2m libs</title></head>
<body>
<?php

//error_reporting(0);

$ponteiro  = opendir("../download/libs");
while ($nome_itens = readdir($ponteiro))
{
	$itens[] = $nome_itens;
}
sort($itens);

foreach ($itens as $listar) 
{
	if ($listar!="." && $listar!="..")
	{
		if (is_dir($listar)) 
		{
			$pastas[]=$listar;
		}
		else
		{
			$arquivos[]=$listar;
		}
	}
}
foreach($arquivos as $name)
{
	rewinddir();
	$md5 = md5_file("../download/libs/$name");
	$md5 = "( MD5 = $md5 )";
	$link = "<a href='../download/libs/$name'>";
	$name = "$name";
	$line = "$link$name</a> <b>$md5</b><br />\n";
	print $line;

}

?>
</body></html>